package com.fary.stringutils;

import org.springframework.util.StringUtils;

public class TestStringUtils {

	public static void main(String[] args) {
		String str = ",123,456,789,4,";
		String[] strings = StringUtils.delimitedListToStringArray(str, ",","4");
		System.out.println(strings);


		String str2 = StringUtils.cleanPath("/GFG/./../Geeks");
		String str3 = StringUtils.cleanPath("GFG/../Geeks");
		String str4 = StringUtils.cleanPath("..GFG/./../Geeks");
		String str5 = StringUtils.cleanPath("gfg/../../../Geek/GFG");
		System.out.println(str2);

		String[] strings1 = StringUtils.tokenizeToStringArray("dev,prod online;test", ",; ");
		System.out.println(strings1);

		String s = StringUtils.applyRelativePath("resource/", "resource.txt");

	}
}
